/*page loadding*/
.page-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.4s 0.2s ease-in-out;
  transition: all 0.4s 0.2s ease-in-out;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

.dark-mode .page-loading {
  background-color: #131022;
}

.page-loading.active {
  opacity: 1;
  visibility: visible;
}

.page-loading-inner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: opacity 0.2s ease-in-out;
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}

.page-loading.active > .page-loading-inner {
  opacity: 1;
}

.page-loading-inner > span {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: var(--bs-primary);
}

.dark-mode .page-loading-inner > span {
  color: #fff;
  opacity: 0.6;
}

.page-spinner {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  vertical-align: text-bottom;
  border: 0.15em solid var(--bs-primary);
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner 0.75s linear infinite;
  animation: spinner 0.75s linear infinite;
}

.dark-mode .page-spinner {
  border-color: rgba(255, 255, 255, 0.4);
  border-right-color: transparent;
}

@-webkit-keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
#navbarCollapse li.nav-item {
  position: relative;
}

#navbarCollapse li.nav-item::before,
#navbarCollapse li.nav-item::after {
  position: absolute;
  content: "";
  width: 0;
  height: 2px;
  background: var(--bs-primary);
  transition: 0.3s;
  bottom: 0;
}

#navbarCollapse li.nav-item::before {
  left: 50%;
}

#navbarCollapse li.nav-item::after {
  right: 50%;
}

#navbarCollapse li.nav-item:hover::before,
#navbarCollapse li.nav-item:hover::after {
  width: 50%;
  color: var(--bs-primary);
}

@font-face {
  font-family: "hm";
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Harmony.woff2") format("woff2");
}

body {
  font-family: "LXGW WenKai Screen", "hm", "微软雅黑";
  /* background: #f7f7fb; */
  /* background-color: #f5f8ff; */
  background-color: #f7f9fa;
}

.dark-mode blockquote {
  background-color: #131022;
}
blockquote {
  background-color: #f5f5f5;
  padding: 1.25em 1.5em;
  border-radius: 0.3em;
  border-left: 0.3em solid var(--bs-primary);
}

.card {
  border-radius: 5px;
}

.category .col-4 {
  margin-top: 2rem;
}

h2.title,
.post h3:not([class="accordion-header"]) {
  padding: 0 1rem;
  line-height: 2rem;
  position: relative;
}
.post h3:not([class="accordion-header"]):before,
h2.title::before {
  position: absolute;
  content: "";
  background-color: var(--bs-primary);
  width: 5px;
  height: 50%;
  left: 0;
  top: 0.5rem;
  border-radius: 2px;
}

.post .nav-tabs-alt {
  border-bottom: 0;
}
.post img {
  border-radius: 5px;
}
.post .post-content ul li {
  list-style-type: circle;
}

.post h2 {
  font-weight: 700;
  display: table;
  box-shadow: inset 0 -1rem 0 rgb(99 102 241 / 30%);
}
.post h2,
.post h3 {
  margin: 1.5rem 0;
}

.code-toolbar :not(pre) > code[class*="language-"],
.code-toolbar pre[class*="language-"] {
  padding-top: 2rem;
}
.code-toolbar pre[class*="language-"]::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 1.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #fc625d;
  box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
}
.widget-toc i.bx,
.comment i.bx {
  font-size: 2rem;
  position: relative;
  top: 0.5rem;
  right: 5px;
}
.comment li {
  list-style: none;
}
.comment .cancel-comment-reply {
  margin-bottom: 0.5rem;
}
a#cancel-comment-reply-link {
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid #ec2121;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  color: #fff;
  background-color: #ec2121;
}
.comment a.btn-logout {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.comment .reply > a {
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid #e2e2e2;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  color: #909090;
  background-color: #fff;
}
.comment .reply > a:hover {
  background-color: var(--bs-success);
  color: #fff;
}
.comment-list p {
  margin-bottom: 0;
}
.comment .avatar {
  border-radius: 50%;
}
.widget-toc {
  top: 7rem;
}
.modal-backdrop {
  z-index: 1030;
}
.widget-avatar {
  border-radius: 50%;
}

.dark-mode .post .postcopyright {
  background: #1f1c2d;
}
.post .postcopyright {
  background: #f3f6ff;
}

.widget-author-img {
  margin-top: -5rem;
}
.widget .widget-header {
  position: relative;
  padding-left: 2rem;
}
.widget .widget-header::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 4px;
  border-radius: 4px;
  left: 0;
  top: 9px;
  z-index: 1;
  background-image: -o-linear-gradient(
    left,
    #6366f1,
    #6e86ff,
    #8068ff,
    #6366f1
  );
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#6366f1),
    color-stop(#6e86ff),
    color-stop(#8068ff),
    to(#6366f1)
  );
  background-image: linear-gradient(
    to right,
    #6366f1,
    #6e86ff,
    #8068ff,
    #6366f1
  );
  background-size: 300% 100%;
  -webkit-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
.widget .widget-category .list-group-item {
  padding: 0.3rem 0;
}
